import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as appActions from '../redux/actions/home';
import HomeView from '../views/HomeView';

function mapStateToProps(state) {
    const { appData } = state;
    return {
        appData
    }
}

function mapDispatchToProps(dispatch) {
    const actions = { ...appActions };
    return {
        actions: bindActionCreators(actions, dispatch)
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(HomeView);